<template>
    <div class="header">
        <div></div>
        <div>
            <el-dropdown>
            <span class="el-dropdown-link">
                <el-avatar shape="square" size="medium" src="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg"></el-avatar>
                <i class="el-icon-caret-bottom el-icon--right"></i>
            </span>
            <el-dropdown-menu slot="dropdown">
                <el-dropdown-item>个人中心</el-dropdown-item>
                <el-dropdown-item>布局设置</el-dropdown-item>
                <el-dropdown-item divided>退出登录</el-dropdown-item>
            </el-dropdown-menu>
            </el-dropdown>
        </div>
      
  </div>
</template>

<script>
    export default {
       name:"HeaderMenu" 
    }
</script>

<style lang="less" scoped>
    .header{
        height: 56px;
        display: flex;
        /* 设置子标签布局方式，space-between控制父级下亲儿子 第一个和最后一个两端对齐，中间儿子 平分剩余空间*/
        justify-content: space-between;
        >div{
            display: flex;
            align-items: center;
            i{
                font-size: 25px;
                margin-left: 5px;
                margin-right: 10px;
                margin-top: 10px;
            }
        }
    }
</style>